package com.hs.authcenter.feign;

import com.hs.authcenter.entity.User;
import com.hs.common.api.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: TODO
 * @Author 胡尚
 * @Date: 2024/7/26 13:12
 */
@FeignClient(name = "hs-user-server", path = "/user")
public interface UserFeignService {


    @GetMapping("/queryUser")
    @ResponseBody
    CommonResult<User> queryUser(@RequestParam("username") String username);
}
